package edu.iyte.ceng316.ui.phonebook.right;

import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.ListSelectionModel;

import edu.iyte.ceng316.ui.phonebook.mediator.IPhoneBookMediator;


public class PersonInfoPanel extends JScrollPane {
	private JTable table;
	
	IPhoneBookMediator iPhoneBookMediator;
	
	public PersonInfoPanel() {
		table = new JTable();
		
		table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		add(table);
		setViewportView(table);

	}

	public JTable getTable() {
		return table;
	}

	public void setTable(JTable table) {
		this.table = table;
	}

	public void setIPhoneBookMediator(IPhoneBookMediator iPhoneBookMediator) {
		this.iPhoneBookMediator = iPhoneBookMediator;
	}

}
